package indi.fritz.bigmap.common;

import java.io.File;

public class Options {
	/**
	 * 目录
	 */
	private File folder;
	
	/**
	 * 如果文件不存在则创建
	 */
	private boolean createIfNotExist = true;
	/**
	 * 打开连接是是否清空数据
	 */
	private boolean clearOnOpen  = false;
	/**
	 * 只读模式打开
	 */
	private boolean readonly = false;
	/**
	 * 是否独占当前数据库
	 */
	private boolean exclusive = false;
	
	public File getFolder() {
		return folder;
	}
	public void setFolder(File folder) {
		this.folder = folder;
	}
	public boolean isCreateIfNotExist() {
		return createIfNotExist;
	}
	public void setCreateIfNotExist(boolean createIfNotExist) {
		this.createIfNotExist = createIfNotExist;
	}
	public boolean isClearOnOpen() {
		return clearOnOpen;
	}
	public void setClearOnOpen(boolean clearOnOpen) {
		this.clearOnOpen = clearOnOpen;
	}
	public boolean isReadonly() {
		return readonly;
	}
	public void setReadonly(boolean readonly) {
		this.readonly = readonly;
	}
	public boolean isExclusive() {
		return exclusive;
	}
	public void setExclusive(boolean exclusive) {
		this.exclusive = exclusive;
	}
}
